Crate gokz_rs

source ·
Expand description

gokz.rs

A rust library for working with anything GOKZ!

This crate features basic types I didn’t want to write over and over again for every project, as well as some easy to use wrapper functions for calling popular APIs such as the GlobalAPI.

Features

By default, only some types are included. API wrappers and integrations with popular crates such as chrono and serde are hidden behind feature flags.

Re-exports

Modules

  • The error type for this crate.
  • This module contains a utility type which is used a lot in the optional modules of this crate. It’s also really useful when working with serialized data.
  • This module contains the 3 KZ modes.
  • Abstraction over a “player”. Many APIs accept either a player’s SteamID or name.
  • Most of what you probably need from this crate.
  • This module holds an enum for player ranks. Based on points each player will have a rank assigned to them. The threshold for each of these ranks may also depend on the mode.
  • This module contains an enum for TP / PRO.
  • This module contains a utility type which is used a lot in the optional modules of this crate. It’s also really useful when working with serialized data.
  • A unique identifier for steam accounts.
  • This module contains an enum for the map tiers.
  • Module containing utility functions that I couldn’t find a better place for.

Macros

  • Early return with the given Error variant.